package com.lagou.server.mapper;

import com.lagou.server.HttpServlet;

import java.util.HashMap;
import java.util.Map;

/***
 * 映射到 Context
 */
public class MappedContext extends MapElement {
    private String contextPath; //默认 /
    private ClassLoader classLoader;
    private Map<String, HttpServlet> servletMap = new HashMap<String,HttpServlet>();

    public String getContextPath() {
        return contextPath;
    }

    public void setContextPath(String contextPath) {
        this.contextPath = contextPath;
    }

    public ClassLoader getClassLoader() {
        return classLoader;
    }

    public void setClassLoader(ClassLoader classLoader) {
        this.classLoader = classLoader;
    }

    public Map<String, HttpServlet> getServletMap() {
        return servletMap;
    }

    public void setServletMap(Map<String, HttpServlet> servletMap) {
        this.servletMap = servletMap;
    }
}
